﻿using UnityEngine;
using System.Collections;

public class StartButton : MonoBehaviour {
	private int buttonWidth = 400;
	private int buttonHeight = 50;
	// Use this for initialization
	void Start () 
	{
	
	}
	
	// Update is called once per frame
	void Update () 
	{

	}

	void OnGUI()
	{
		float centerScreenLeft = (Screen.width / 2) - (buttonWidth / 2);

		if(GUI.Button(new Rect(centerScreenLeft,100,buttonWidth,buttonHeight),"Start Button"))
		{
			Application.LoadLevel("tronco");

		}

		if(GUI.Button(new Rect(centerScreenLeft,200,buttonWidth,buttonHeight),"Scores"))
		{
			Application.LoadLevel("scores");

		}

		if(GUI.Button(new Rect(centerScreenLeft,300,buttonWidth,buttonHeight),"About"))
		{
			Application.LoadLevel("aboutUS");

		}


		if(GUI.Button(new Rect(centerScreenLeft,400,buttonWidth,buttonHeight),"Quit"))
		{
			Application.Quit();

		}

		/*if(GUI.Button(new Rect(4,31,80,100),"Start Button"))
		{
			Application.LoadLevel("tronco");
			Debug.Log("Startei");
		}*/

	}
}
